package com.example.goods_service.otherservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "USERSERVICE")
public interface UserService
{
    @RequestMapping("/f_selectuser_type")
    int selectmytype(@RequestParam("userid") int userid);

    @RequestMapping("/updatetype")
    boolean updatetype(@RequestParam("userid") int userid);
}
